package elitech.vietnam.copyweatherfashion.entities;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

import com.google.gson.annotations.SerializedName;


public class Store {

	@SerializedName("id")
	public int Id;
	
	@SerializedName("store_id")
	public String Username;
	
	@SerializedName("store_pswd")
	public String Password;
	
	@SerializedName("store_name")
	public String Name;
	
	@SerializedName("store_pic")
	public String Image;
	
	@SerializedName("store_person")
	public String Person;
	
	@SerializedName("store_cell")
	public String Cell;
	
	@SerializedName("store_phone")
	public String Phone;
	
	@SerializedName("store_mail")
	public String Email;
	
	@SerializedName("store_addr")
	public String Address;
	
	@SerializedName("store_home")
	public String HomePage;
	
	@SerializedName("store_serial")
	public String Serial;
	
	@SerializedName("store_joinday")
	public String JoinDate;
	
	@SerializedName("store_profile")
	public String Profile;
	
	@SerializedName("store_area")
	public String Area;
	
	@SerializedName("status")
	public String Status;
	
	public Date JoinDate() {
		try {
			return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()).parse(JoinDate);
		} catch (ParseException e) {
			e.printStackTrace();
			return null;
		}
	}
}
